<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>用户企业信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/sys/job/hkUserEnterprise/">用户企业信息列表</a></li>
		<li class="active"><a href="${ctx}/sys/job/hkUserEnterprise/form?id=${hkUserEnterprise.id}">用户企业信息<shiro:hasPermission name="sys:job:hkUserEnterprise:edit">${not empty hkUserEnterprise.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="sys:job:hkUserEnterprise:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="hkUserEnterprise" action="${ctx}/sys/job/hkUserEnterprise/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">用户id：</label>
			<div class="controls">

				<sys:tableSelect id="user" name="user.id" value="${hkUserEnterprise.user.id}" labelName="user.name" labelValue="${hkUserEnterprise.user.name}" title="选择用户" url="${ctx}/sys/user/hkUser/list?1=1" checked="1"   />

			</div>
		</div>
		<div class="control-group">
			<label class="control-label">经度：</label>
			<div class="controls">
				<form:input path="longitude" htmlEscape="false" maxlength="100" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">纬度：</label>
			<div class="controls">
				<form:input path="latitude" htmlEscape="false" maxlength="100" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">头像：</label>
			<div class="controls">
				<form:hidden id="headImg" path="headImg" htmlEscape="false" maxlength="200" class="input-xlarge"/>
				<sys:ckfinder input="headImg" type="images" uploadPath="/sys/hkUserEnterprise" selectMultiple="false"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">申请用户名称：</label>
			<div class="controls">
				<form:input path="username" htmlEscape="false" maxlength="100" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">职位：</label>
			<div class="controls">
				<form:input path="duties" htmlEscape="false" maxlength="100" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">简介：</label>
			<div class="controls">
				<form:textarea path="introduce" htmlEscape="false" rows="4" maxlength="100" class="input-xxlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">简历邮箱：</label>
			<div class="controls">
				<form:input path="hrEmail" htmlEscape="false" maxlength="100" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">地址：</label>
			<div class="controls">
				<form:input path="address" htmlEscape="false" maxlength="200" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">身份证：</label>
			<div class="controls">
				<form:hidden id="idcardImg" path="idcardImg" htmlEscape="false" maxlength="100" class="input-xlarge"/>
				<sys:ckfinder input="idcardImg" type="images" uploadPath="/sys/hkUserEnterprise" selectMultiple="false"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">公司名称：</label>
			<div class="controls">
				<form:input path="name" htmlEscape="false" maxlength="200" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">营业执照：</label>
			<div class="controls">
				<form:hidden id="businesslicense" path="businesslicense" htmlEscape="false" maxlength="100" class="input-xlarge"/>
				<sys:ckfinder input="businesslicense" type="images" uploadPath="/sys/hkUserEnterprise" selectMultiple="false"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">公司简称：</label>
			<div class="controls">
				<form:input path="abbreviation" htmlEscape="false" maxlength="200" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">公司联系电话：</label>
			<div class="controls">
				<form:input path="tel" htmlEscape="false" maxlength="100" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">认证：</label>
			<div class="controls">
				<form:select path="isauth" class="input-xlarge ">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">行业领域：</label>
			<div class="controls">
				<sys:treeselect id="industry" name="industry.id" value="${hkUserEnterprise.industry.id}" labelName="industry.name" labelValue="${hkUserEnterprise.industry.name}"
								title="领域" url="/sys/job/hkRecruitIndustry/treeData" cssClass="" allowClear="true" notAllowSelectParent="true"/>

			</div>
		</div>
		<div class="control-group">
			<label class="control-label">公司规模：</label>
			<div class="controls">
				<form:select path="scale" class="input-xlarge ">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('hk_recruit_scale')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">发展阶段：</label>
			<div class="controls">
				<form:select path="stage" class="input-xlarge ">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('hk_recruit_stage')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">公司网址：</label>
			<div class="controls">
				<form:input path="website" htmlEscape="false" maxlength="200" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">企业邮箱：</label>
			<div class="controls">
				<form:input path="mailbox" htmlEscape="false" maxlength="200" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">所在地区：</label>
			<div class="controls">
				<sys:treeselect id="area" name="area.id" value="${hkUserEnterprise.area.id}" labelName="area.name" labelValue="${hkUserEnterprise.area.name}"
					title="区域" url="/sys/area/treeData" cssClass="" allowClear="true" notAllowSelectParent="true"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">封面图片：</label>
			<div class="controls">
				<form:hidden id="coverImgSrc" path="coverImgSrc" htmlEscape="false" maxlength="200" class="input-xlarge"/>
				<sys:ckfinder input="coverImgSrc" type="images" uploadPath="/sys/hkUserEnterprise" selectMultiple="false"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">视频长度：</label>
			<div class="controls">
				<form:input path="vedioLength" htmlEscape="false" maxlength="10" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">封面图片宽带：</label>
			<div class="controls">
				<form:input path="coverImgWidth" htmlEscape="false" maxlength="10" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">封面图片高度：</label>
			<div class="controls">
				<form:input path="coverImgHeight" htmlEscape="false" maxlength="10" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">图片或者视频地址：</label>
			<div class="controls">
				<form:hidden id="imgSrc" path="imgSrc" htmlEscape="false" maxlength="200" class="input-xlarge"/>
				<sys:ckfinder input="imgSrc" type="files" uploadPath="/sys/job/hkUserEnterprise" selectMultiple="true"/>

			</div>
		</div>
		<div class="control-group">
			<label class="control-label">备注：</label>
			<div class="controls">
				<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="100" class="input-xxlarge "/>
			</div>
		</div>
		<div class="form-actions">
			<shiro:hasPermission name="sys:job:hkUserEnterprise:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>